package com.thomas.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.thomas.dao.LinkDao;
import com.thomas.entity.Link;
import com.thomas.service.LinkService;


/** 
 * @ClassName: LinkServiceImpl 
 * @Description: 友情链接Service实现类
 * @author thomas_liu  
 * @date 2017年5月6日 下午8:49:30 
 *  
 */
@Service("linkService")
public class LinkServiceImpl implements LinkService {
	
	@Autowired
	private LinkDao linkDao;

	public List<Link> list(Map<String, Object> map) {
		return linkDao.list(map);
	}

	public int add(Link link) {
		return linkDao.add(link);
	}

	public Long getTotal(Map<String, Object> map) {
		return linkDao.getTotal(map);
	}

	public Integer delete(Integer id) {
		return linkDao.delete(id);
	}

	public int update(Link link) {
		return linkDao.update(link);
	}
	

}
